package com.action.gulimall.order.service;

import com.action.common.to.mq.SeckillOrderTo;
import com.action.gulimall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.action.common.utils.PageUtils;
import com.action.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author shilun
 * @email shilun217@qq.com
 * @date 2021-06-09 22:38:13
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo toTrade();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderEntityByOrderSn(Long orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    String handlePayResult(PayAsyncVo asyncVo);

    String asyncNotify(String notifyData);

    PageUtils queryPageWithItem(Map<String, Object> params);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);
}

